package com.springboot.bookmanegersystem.service;

import com.springboot.bookmanegersystem.model.UserInfo;
import com.springboot.bookmanegersystem.model.req.UserRequestParam;
import com.springboot.bookmanegersystem.model.resp.Result;
import jakarta.servlet.http.HttpSession;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-05-08
 * Time: 20:08
 */
public interface UserService {

    /**
     * 用户注册逻辑
     * @param userRequestParam 用户注册参数
     * @return 返回注册结果(统一数据返回格式)
     */
    Result userRegister(UserRequestParam userRequestParam);

    /**
     * 用户登录逻辑
     * @param userRequestParam 用户登录参数
     * @param session 保存脱敏后的用户信息
     * @return 返回登录结果(统一数据返回格式)
     */
    Result userLogin(UserRequestParam userRequestParam, HttpSession session);
}
